package com.zcy.service.impl;
import javax.annotation.Resource;  

import org.springframework.stereotype.Service;  
import com.zcy.dao.UserDao;
import com.zcy.entity.User;
import com.zcy.service.UserService;
  
  
@Service("userService")  
public class UserServiceImpl implements UserService {  
    @Resource  
    private UserDao userDao;  
    
    public User getUserById(int userId) {  
       
        return this.userDao.selectByPrimaryKey(userId);  
    }  
  
}